<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Download</title>
        <script type="text/javascript">  
            function start() {  
                statusDialog.show();  
            }  
  
            function stop() {  
                statusDialog.hide();  
            }  
        </script> 
    </h:head>
    <h:body>
        <p:accordionPanel style="font-size: 11px">
            <p:tab title="Description">
                #{func_download.lib.detail}
            </p:tab>
            <p:tab title="Download">
                <p:dialog modal="true" widgetVar="statusDialog" header="Status" draggable="false" closable="false" resizable="false" showEffect="clip" hideEffect="clip">  
                    <p:graphicImage value="/images/ajax_loading_bar.gif" />  
                    <p:commandButton value="Cancel" onclick="stop()"/>
                </p:dialog>  
                <!--<h:outputLink value="">-->
                <h:form id="download">
                    <p:commandButton process="@this" ajax="false" action="#{func_download.download}" value="Download">
                    </p:commandButton>  
                </h:form>
                <!--                </h:outputLink>-->
            </p:tab>
        </p:accordionPanel>
    </h:body>
</html>

